package com.world.business.treasure.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * <p>
 * 灵兽/灵植
 * </p>
 *
 * @author 邓驴
 * @since 2023-07-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@ApiModel(value = "Treasure对象", description = "灵兽/灵植")
public class TreasureVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("种族Id")
    private Long raceId;

    @ApiModelProperty("所有者")
    private Long owner;

    @ApiModelProperty("稀有程度")
    private String rarity;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("出生时间")
    private LocalDateTime birthday;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("死亡时间")
    private LocalDateTime dieathday;

    @ApiModelProperty("状态(1正常 0删除)")
    private String status;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("来源")
    private String source;

}
